package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 接收器和电磁阀上报数据
 * </p>
 *
 * @author li.shiying
 * @since 2023-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_record_receiver_valve")
@ApiModel(value="RecordReceiverValve对象", description="接收器和电磁阀上报数据")
public class RecordReceiverValve implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "控制器上报数据表主键")
    @TableField("record_id")
    private Long recordId;

    @ApiModelProperty(value = "报警器设备表主键")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "电磁阀ID")
    @TableField("valve_id")
    private String valveId;

    @ApiModelProperty(value = "接收器状态 0-离线,1-正常")
    @TableField("receiver_status")
    private Integer receiverStatus;

    @ApiModelProperty(value = "电磁阀工作状态 0-正常 1-故障")
    @TableField("valve_work_status")
    private Integer valveWorkStatus;

    @ApiModelProperty(value = "阀门状态 0-开 1-关")
    @TableField("valve_status")
    private Integer valveStatus;

    @ApiModelProperty(value = "故障状态(多个以;分隔) 70-故障 71-电磁阀离线 72-电磁阀短路 73-电磁阀开路 74-电磁阀欠压")
    @TableField("broken_status")
    private String  brokenStatus;

    @ApiModelProperty(value = "上报时间")
    @TableField("record_at")
    private Date recordAt;

    @ApiModelProperty(value = "是否删除 0-正常 1-删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_at")
    private Date updatedAt;

    @ApiModelProperty(value = "企业编号")
    @TableField("sp_id")
    private String spId;

}
